﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BBICMS.Resources;
using BBICMS.Model;
using System.Web.Mvc;

namespace BBICMS.Application.InputModels.Pages
{
    public class PageIM
    {
        public int Id { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "SeoName")]
        [Remote("IsExist", "Page", AdditionalFields = "Id", ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "IsExist")]       
        [RegularExpression(@"(\S)+", ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "RENotWhiteSpace")]       
        public string SeoName { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Importance")]
        public int Importance { get; set; }
 
        [Display(ResourceType = typeof(Labels), Name = "Active")]
        public bool Active { get; set; }
        public DateTime AddedDate { get; set; }
        public string AddedBy { get; set; }
        public DateTime? UpdatedDate { get; set; }
        public string UpdatedBy { get; set; }

        public List<PageLangIM> PageLangs { get; set; }

    }
}
